package cn.g31010.sip.service
{
	public class LoginService
	{
		private static var authservice:LoginService;
		public function LoginService()
		{
			if(LoginService.authservice!=null)
				throw new Error("Only one instance should be instantiated");
		}
		
		public static function getInstance():LoginService{
			if(authservice==null){
				authservice=new LoginService;
			}
			return authservice;
		}
		
		public function login( id:String, pwd:String):User{
			return null;
		}
	
		public function logout(String id):void{
		
		};
	}
}